CFLAGS= -Wall 
CFLAGS_MAIN= -Wall -g -lcrypto -lz -D_M_IX86 -o client

SOURCE_CLIENT = client.c

DEPENDS_CLIENT = $(OBJECTS_CLIENT) $(SOURCE_CLIENT) 

OBJECTS_CLIENT = ../rsa/myRsa.o  ../twofish/myTwofish2.o ../twofish/zlib_use.o ../twofish/twofish2.o ../sha2/sha2.o

# gcc -g -o client client.c ../sha2/sha2.c ../rsa/myRsa.c ../server/db.c ../twofish/twofish2.c ../twofish/myTwofish2.c ../twofish/zlib_use.c -lsqlite3 -lcrypto -lz -D_M_IX86

.PHONY: clean

all: clean client

clean:
	-rm -rf *.o *.*~ *.xml client

client: $(DEPENDS_CLIENT)
	cc  $(SOURCE_CLIENT) $(OBJECTS_CLIENT) $(CFLAGS_MAIN)
	
